package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutinePathologySamplingPlatform;
import com.zhijian.medical.entity.vo.request.RoutinePathologySamplingPlatformSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.RoutinePathologySamplingPlatformSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologySamplingPlatformVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 常规病例取材台 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-06-09 18:55:36
 */
public interface RoutinePathologySamplingPlatformService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    RoutinePathologySamplingPlatform selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologySamplingPlatformVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 按照主键批量删除
     *
     * @param idList
     */
    void deleteByIdList(List<Long> idList);

    /**
     * 新增
     *
     * @param routinePathologySamplingPlatform
     * @return
     */
    Long insert(RoutinePathologySamplingPlatform routinePathologySamplingPlatform);

    /**
     * 动态新增
     *
     * @param routinePathologySamplingPlatform
     * @return
     */
    Long insertSelective(RoutinePathologySamplingPlatform routinePathologySamplingPlatform);

    /**
     * 更改
     *
     * @param routinePathologySamplingPlatform
     * @return
     */
    boolean update(RoutinePathologySamplingPlatform routinePathologySamplingPlatform);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(RoutinePathologySamplingPlatform record);

    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean save(RoutinePathologySamplingPlatformSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 编辑
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean modify(RoutinePathologySamplingPlatformSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 列表
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    RoutinePathologySamplingPlatformVo selectOne(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 总数
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    Integer count(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 列表
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    List<RoutinePathologySamplingPlatformVo> selectList(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 分页查询
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    Page<RoutinePathologySamplingPlatformVo> selectPage(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<RoutinePathologySamplingPlatform> entities);

    /**
     * 动态删除，慎重用此方法！！
     *
     * @param routinePathologySamplingPlatformSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologySamplingPlatformSearchVo routinePathologySamplingPlatformSearchVo);
}